function ajax(param) {
  return $.ajax({
    url: param.url,
    data: param.data,
    type: 'POST',
    dataType: "json",
    contentType: "application/x-www-form-urlencoded;charset=UTF-8",
    success: function (response) {
      param.success(response);
    }
  });
};